<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:84:"C:\xampp\htdocs\game\game1\douniu1/application/game\view\douniuplay\index_chose.html";i:1506593231;s:79:"C:\xampp\htdocs\game\game1\douniu1/application/game\view\douniuplaywjy\mp3.html";i:1506846440;s:79:"C:\xampp\htdocs\game\game1\douniu1/application/game\view\douniuplaywjy\img.html";i:1500606572;}*/ ?>
<!DOCTYPE>
<html>
<head>
    <title>牛牛房间<?php echo $room['room_num']; ?>【<?php if($gamerule['gametype'] == '1'): ?>牛牛上庄<?php endif; if($gamerule['gametype'] == '2'): ?>固定庄家<?php endif; if($gamerule['gametype'] == '3'): ?>自由抢庄<?php endif; if($gamerule['gametype'] == '4'): ?>明牌抢庄<?php endif; if($gamerule['gametype'] == '5'): ?>通比牛牛<?php endif; ?>】</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge，chrome=1">
    <meta name="description" content="不超过150个字符"/>
    <meta name="keywords" content="">
    <meta name="format-detection" content="telephone=no">
    <meta name="robots" content="index,follow"/>
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <meta name="HandheldFriendly" content="true">
    <meta name="msapplication-tap-highlight" content="no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" type="text/css" href="__STATIC__/game/css/play.css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/game/css/opentip.css">
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>

    <![endif]-->
</head>
<body>

<style>
    *{-webkit-backface-visibility: hidden; opacity: 1;}
    body{background:url(__STATIC__/game/img/table.jpg) no-repeat; background-size: 100% auto;background-color: rgb(17, 103, 59);}
    .photo{display: none;}
    .msgshow{
        position: fixed;
        bottom:0;
        left:0;
        right:0;
        background: rgba(0,0,0,0.8);
        color: #fff;
        padding:5px;
        font-size: 12px;
    }
    .desk .photo {
        text-align: center;
        float: right;
        margin-bottom: 1rem;
    }
    .desk .players2 {
        width: 4.5rem;
        position: absolute;
        top: 1em;
        left: -2.5rem;
    }
    .desk .players1 {
        width: 4.5rem;
        position: absolute;
        top: 1em;
        right: -2.7rem;
    }
    .desk {
        clear: both;
        width: 70%;
        border: none;
        position: absolute;
        top: 3em;
        left: calc(20% - 1.5rem);
        bottom: 0.7em;
        border-radius: 4rem;
        background: none;
        -moz-box-shadow: none;
        -webkit-box-shadow: none;
        box-shadow:none;
    }
    .cards {
        width: 100%;
        margin-left: 0%;
        text-align: center;
        position: absolute;
        bottom: 50px;
        z-index:100;
    }
    .cardsbox{position: relative; display: none;}
    .cards .poker{width:16%; display: inline-block;}
    .cards .poker img{width:100%; vertical-align: bottom;}
    .cardsbox .poker {width: 40px; display:inline-block;}
    .cardsbox .poker img{width:100%;}
    .cardsbox .box1 {position: absolute; left: 0px; z-index: 1;}
    .cardsbox .box2 {position: absolute; left: 10px; z-index: 1;}
    .cardsbox .box3 {position: absolute; left: 20px; z-index: 1;}
    .cardsbox .box4 {position: absolute; left: 30px; z-index: 1;}
    .cardsbox .box5 {position: absolute; left: 40px; z-index: 1;}
    .niuname{position: absolute; display: none; z-index: 5; top:15px; font-size: 14px; width:100%; text-align: center; color:#f00;}
    .niuname img{width: 80px;}
    .last-time{display: none;}
    .tanpai{display:none;}
    .cards{display: none;}
    .photo{position: relative;}
    .readyimg{width:50px !important; height: auto !important; position: absolute; display: none;}
    .xiazhubox{position: absolute;
        top: -20px;
        width: 80px;}
    .xiazhubox img{width:20px; display:none;}
    .xiazhubox img.bankerimg{width:35px;}
    .zhuangimg{width: 20px;
        position: absolute;
        left: 0;
        top: 0; display: none;}
    .gameret{color: #F6C312;
        text-shadow: -2px -2px 1px #734E10;
        font-size: 16px;
        font-weight: bold; display: none; position: absolute;}

.round{color:#000;}

    .tanpai{position: static; margin-left:0; width:auto !important; margin-bottom: 5px;}
    /* 弹窗显示排名的样式 */
    .window{position: absolute; z-index: 10;
        top:0; bottom: 0;
        left:0; right:0; background: #fff; display: none;background: #140C09;}

    .msg-action img {
        width: 1.6rem;
        margin-top: 0.3rem;
        margin-right: 0.1rem;
    }

    .window .content{width: 74%;margin-left: 13%;margin-top: 30%;text-align: center;}
    .window .times{display: inline-block;background:#5B5211; border-radius: 0.6rem;height: 1.2rem;line-height:1.2rem;font-size: 0.6rem;color:#D6BC71;padding: 0 0.3rem;border:1px solid #ccc;}
    .window ul{width: 90%;margin-left: 5%;margin-top: 1.2rem;}
    .window ul li{background:#1C1606;color: white;list-style: none;width: 96%;margin-left: 2%;margin-top: 2%;height: 2.2rem;line-height: 2.2rem;font-size: 0.8rem;opacity: 0.9;}
    .window ul li span:first-child{float: left;margin-left: 2rem;max-width: 5rem;overflow: hidden; text-overflow:ellipsis;white-space:nowrap;}
    .window ul li span:last-child{float: right;margin-right: 2rem;}
    .window .add{color:#F5D203!important;}
    .window>img{position: absolute;top:0;left: 0;width: 100%;z-index: -1;}
    .window .win{background: url(__STATIC__/game/img/win.png) left top no-repeat;background-size: 12%;}
    .photo .tx {
    width: 2rem;
    height: 2rem;
    float: left;
    margin-left: 0.8rem;
    margin-top: 0rem;
    border-radius: 0.4rem;
    overflow: hidden;
}
/*.msg .photo {
    left: 50%;
    margin-left: -1.8rem;
    margin-top: -1.6rem;
}*/
/*.msg-action {
    bottom: 0.45rem!important;
    left: 0.5rem;
    float: left;
    position: absolute;
    z-index: 9999;
}*/
/*.msg-action img {
    width: 1.6rem;
    margin-top: 0.6rem;
    margin-right: 0.6rem;
}*/
.msg>img {
    float: right;
    margin-top: 3rem;
    margin-right: 1rem;
}
.msg {
    clear: both;
    width: 100%;
    position: absolute;
    bottom: 0rem;
    text-align: center;
}
.base-bet {
    display: inline-block;
     background: none; 
    color: white;
    padding: .1rem 1rem 0.2rem;
    line-height: 1rem;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    margin-top: 3.5rem;
    margin-left: 0.5rem;
}
.desk .players3 {
    width: 4.5rem;
    position: absolute;
    top: -11%;
    left: 50%;
    margin-left: -3rem;
}
.photo {
    width: 3.6rem;
    height: 5.625rem;
    background: url(__STATIC__/botunet/images/player.png);
    background-size: 100%;
    float: none;
    position: relative;
}

.msg .photo p, .desk .photo p {
        background: none;
    min-width: 0rem;
    margin-top: 0.2rem;
    border-radius: 0.2rem;
    line-height: 0.6rem;
    -moz-box-shadow: 0px 0px 2px #333,inset 0px 0px 3px #222;
    /* -webkit-box-shadow: 0px 0px 2px #333, inset 0px 0px 3px #222; */
    box-shadow: none;
    text-align: center;
}
.photo .qzbg1 {
    width: 2.875rem;
    height: 4.375rem;
    position: absolute;
    top: 0.5625rem;
    left: 0.375rem;
    transition: All 0.6s;
    -webkit-transition: All 0.6s;
    -moz-transition: All 0.6s;
    -o-transition: All 0.6s;
}
.desk{clear:both;width: 85%;position: absolute;top: 4.5rem;left: calc(15% - 1.5rem);bottom: 2.5rem;border-radius: 10rem;background;}
.desk .players1 {
    width: 4.5rem;
    position: absolute;
    bottom: 40%;
    right: -1.5rem;
}
.qiang img {
    display: inline-block;
    width: 16%;
}
.xiazhu img {
    display: inline-block;
    width: 16%;
}

.msg ul {
    width: 55%;
    height: 15rem;
    overflow: auto;
    z-index: 99;
}

.msg .photo p span:last-child, .desk .photo p span:last-child {
    color: #fff;
}
</style>

<div class="window">
    <iframe src="" frameborder="0" scrolling="no" style="position: fixed; width:100%; top: 0; left: 0; right: 0; bottom: 0;"></iframe>
</div>


<!-- 游戏准备按钮 -->
<img id="gameready" onclick="gameready1(1);" src="__STATIC__/game/img/ready2.png" style="position:absolute;top: 65%; left: 50%; z-index: 3; margin-left:-50px; width: 100px; <?php if($memberinfo['gamestatus'] == '1'): ?>display:none;<?php endif; ?>">









<div class="overlay"></div>
<div class="rules" style="display: none;">
    <img src="__STATIC__/game/img/closes.png">

    <div class="cons">
        <h2>游戏规则</h2>
        <ul>
            <p>创建房间,游戏未进行,不消耗房卡</p>
            <li>模式:<span>
                <?php if($gamerule['gametype'] == '1'): ?>牛牛上庄<?php endif; if($gamerule['gametype'] == '2'): ?>固定庄家<?php endif; if($gamerule['gametype'] == '3'): ?>自由抢庄<?php endif; if($gamerule['gametype'] == '4'): ?>明牌抢庄<?php endif; if($gamerule['gametype'] == '5'): ?>通比牛牛<?php endif; ?>
            </span></li>
            <li>底分:<span><?php echo $gamerule['score']; ?>分</span></li>

            <li>规则:<span>
                <?php if($gamerule['rule'] == '1'): ?>
                牛牛x3 牛九x2 牛八x2
                <?php endif; if($gamerule['rule'] == '2'): ?>
                牛牛x4 牛九x3 牛八x2 牛七x2
                <?php endif; ?>
            </span></li>

            <li>牌型:<span>
                <?php if(!(empty($gamerule['types'][1]) || (($gamerule['types'][1] instanceof \think\Collection || $gamerule['types'][1] instanceof \think\Paginator ) && $gamerule['types'][1]->isEmpty()))): ?>
                五花牛(5倍)
                <?php endif; if(!(empty($gamerule['types'][2]) || (($gamerule['types'][2] instanceof \think\Collection || $gamerule['types'][2] instanceof \think\Paginator ) && $gamerule['types'][2]->isEmpty()))): ?>
                炸弹牛(6倍)
                <?php endif; if(!(empty($gamerule['types'][3]) || (($gamerule['types'][3] instanceof \think\Collection || $gamerule['types'][3] instanceof \think\Paginator ) && $gamerule['types'][3]->isEmpty()))): ?>
                五小牛(8倍)
                <?php endif; ?>
            </span></li>
            <li>局数:<span>
<?php if($gamerule['gamenum'] == '12:1'): ?>
                12局x1房卡
<?php endif; if($gamerule['gamenum'] == '24:2'): ?>
                24局x2房卡
<?php endif; ?>
            </span></li>
        </ul>
    </div>
</div>










<div class="rules" style="display: none;">
    <img src="__STATIC__/game/img/closes.png">

    <div class="cons">
        <h2>声音控制</h2>
        <ul style="text-align: center;">
            <li><label><input checked type="radio" onclick="mp3play('background');" name="audioclose" class=""> 打开</label></li>
            <li><label><input type="radio" onclick="mp3playandpause('background');" name="audioclose" class=""> 关闭</label></li>
        </ul>
    </div>
</div>









<div class="invite" style="position: absolute;top: 1rem;width: 100%;z-index: 100000;display: none;">
    <img src="__STATIC__/game/img/arrow.png" style="width: 5rem;float: right;">
    <p style="color: white;margin:7rem auto;width: 16rem;">
        <span style="display: inline-block;width: 1.5rem;height: 1.5rem;border-radius: 50%;background: red;color: white;text-align: center;line-height: 1.5rem;margin-right: 0.3rem;">1</span>请点击右上角<img src="__STATIC__/game/img/ico1.png" style="width: 1.5rem;vertical-align: middle;margin:0 0.3rem;">按钮<br/><br/>
        <span style="display: inline-block;width: 1.5rem;height: 1.5rem;border-radius: 50%;background: red;color: white;text-align: center;line-height: 1.5rem;margin-right: 0.3rem;">2</span>选择<img src="__STATIC__/game/img/ico2.png" style="width: 1.5rem;vertical-align: middle;margin:0 0.3rem;">发送给朋友来要请好友<br/><br/>
        <span style="color: #E6A43F;">本产品仅供娱乐，禁止用于赌博</span>
    </p>
</div>

<div class="container">
    <div class="header">


        <p class="round" style="width:100%;position: static;
    margin: 0;
    line-height: 2.8;
    text-align: center; position: static; margin: 0; text-align: center;"><span id="playcount"><?php echo $room['playcount']; ?></span>/<span>12</span>&nbsp;局

<br>
        <span style="font-size: 14px;color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 3px 9px;
    border-radius: 12px;">底注：<span><?php echo $gamerule['score']; ?></span>分</span>

        </p>


    </div>

    <div class="desk">
        <div class="players1">
            <div class="photo" id="player_1">
            <p style="margin-top: 15px"><span style="max-width: 2.2rem;font-size: 0.6rem;" class="nickname">不一样的烟火不一样的烟火</span></p>
                <img src="__STATIC__/game/img/33.png" style="width: 2rem;height: 2rem;">
                <img style="right:66px;bottom:34px;" class="readyimg" src="__STATIC__/game/img/ready1.png" style="width: 2.5rem;height: 2.5rem;">
                <img class="zhuangimg" src="__STATIC__/game/img/zhuang.png">
                <p><span class="money">34</span></p>
                <span class="gameret"></span>
                <div class="cardsbox" style="bottom:45px; right:85px;">
                    <div class="poker box1"><img class="pic1" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box2"><img class="pic2" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box3"><img class="pic3" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box4"><img class="pic4" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box5"><img class="pic5" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="niuname">未知</div>
                    <div class="xiazhubox"><img class="bankerimg" src="__STATIC__/game/img/qiangzhuang.png"><img src="__STATIC__/game/img/X-1.png" class="multipleimg">  </div>
                </div>
                <img class="qzbg1" style="display: none;" src="/static/botunet/images/bull_banker_bg.png">
            </div>
            <div class="photo" id="player_2">
            <p style="margin-top: 15px"><span style="max-width: 2.2rem;font-size: 0.6rem;" class="nickname">不一样的烟火不一样的烟火</span></p>
                <img src="__STATIC__/game/img/33.png" style="width: 2rem;height: 2rem;">
                <img style="right:66px;bottom:34px;" class="readyimg" src="__STATIC__/game/img/ready1.png" style="width: 2.5rem;height: 2.5rem;">
                <img class="zhuangimg" src="__STATIC__/game/img/zhuang.png">
                <p><span class="money">34</span></p>
                <span class="gameret"></span>
                <div class="cardsbox" style="bottom:45px; right:85px;">
                    <div class="poker box1"><img class="pic1" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box2"><img class="pic3" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box3"><img class="pic4" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box4"><img class="pic5" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box5"><img class="pic5" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="niuname">未知</div>
                    <div class="xiazhubox"><img class="bankerimg" src="__STATIC__/game/img/qiangzhuang.png"><img src="__STATIC__/game/img/X-1.png" class="multipleimg"> </div>
                </div>
                <img class="qzbg1" style="display: none;" src="/static/botunet/images/bull_banker_bg.png">
            </div>




            <div class="photo" id="player_5">
                <p style="margin-top: 15px"><span style="max-width: 2.2rem;font-size: 0.6rem;" class="nickname">不一样的烟火不一样的烟火</span></p>
                <img src="__STATIC__/game/img/33.png" style="width: 2rem;height: 2rem;">
                <img style="right:66px;bottom:34px;" class="readyimg" src="__STATIC__/game/img/ready1.png" style="width: 2.5rem;height: 2.5rem;">
                <img class="zhuangimg" src="__STATIC__/game/img/zhuang.png">
                <p><span class="money">34</span></p>
                <span class="gameret"></span>
                <div class="cardsbox" style="bottom:45px; right:85px;">
                    <div class="poker box1"><img class="pic1" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box2"><img class="pic3" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box3"><img class="pic4" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box4"><img class="pic5" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box5"><img class="pic5" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="niuname">未知</div>
                    <div class="xiazhubox"><img class="bankerimg" src="__STATIC__/game/img/qiangzhuang.png"><img src="__STATIC__/game/img/X-1.png" class="multipleimg"> </div>
                </div>
                <img class="qzbg1" style="display: none;" src="/static/botunet/images/bull_banker_bg.png">
            </div>

            <div class="photo" id="player_6">
            <p style="margin-top: 15px"><span style="max-width: 2.2rem;font-size: 0.6rem;" class="nickname">不一样的烟火不一样的烟火</span></p>
                <img src="__STATIC__/game/img/33.png" style="width: 2rem;height: 2rem;">
                <img style="right:66px;bottom:34px;" class="readyimg" src="__STATIC__/game/img/ready1.png" style="width: 2.5rem;height: 2.5rem;">
                <img class="zhuangimg" src="__STATIC__/game/img/zhuang.png">
                <p><span class="money">34</span></p>
                <span class="gameret"></span>
                <div class="cardsbox" style="bottom:45px; right:85px;">
                    <div class="poker box1"><img class="pic1" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box2"><img class="pic3" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box3"><img class="pic4" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box4"><img class="pic5" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box5"><img class="pic5" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="niuname">未知</div>
                    <div class="xiazhubox"><img class="bankerimg" src="__STATIC__/game/img/qiangzhuang.png"><img src="__STATIC__/game/img/X-1.png" class="multipleimg"> </div>
                </div>
                <img class="qzbg1" style="display: none;" src="/static/botunet/images/bull_banker_bg.png">
            </div>


        </div>
        <div class="players2">


            <div class="photo"  id="player_0">
            <p style="margin-top: 15px"><span style="max-width: 2.2rem;font-size: 0.6rem;" class="nickname">不一样的烟火不一样的烟火</span></p>
                <img src="__STATIC__/game/img/33.png" style="width: 2rem;height: 2rem;">
                <img style="left:73px;bottom:30px;" class="readyimg" src="__STATIC__/game/img/ready1.png" style="width: 2.5rem;height: 2.5rem;">
                <img class="zhuangimg" src="__STATIC__/game/img/zhuang.png">
                <p><span class="money">34</span></p>

                <span class="gameret"></span>
                <div class="cardsbox" style="bottom:45px; left:50px;">
                    <div class="poker box1"><img class="pic1" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box2"><img class="pic2" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box3"><img class="pic3" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box4"><img class="pic4" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box5"><img class="pic5" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="niuname">未知</div>
                    <div class="xiazhubox"><img class="bankerimg" src="__STATIC__/game/img/qiangzhuang.png"><img src="__STATIC__/game/img/X-1.png" class="multipleimg"> </div>
                </div>
                <img class="qzbg1" style="display: none;" src="/static/botunet/images/bull_banker_bg.png">

            </div>


            <div class="photo"  id="player_3">
            <p style="margin-top: 15px"><span style="max-width: 2.2rem;font-size: 0.6rem;" class="nickname">不一样的烟火不一样的烟火</span></p>
                <img src="__STATIC__/game/img/33.png" style="width: 2rem;height: 2rem;">
                <img style="left:73px;bottom:30px;" class="readyimg" src="__STATIC__/game/img/ready1.png" style="width: 2.5rem;height: 2.5rem;">
                <img class="zhuangimg" src="__STATIC__/game/img/zhuang.png">
                <p><span class="money">34</span></p>

                <span class="gameret"></span>
                <div class="cardsbox" style="bottom:45px; left:50px;">
                    <div class="poker box1"><img class="pic1" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box2"><img class="pic2" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box3"><img class="pic3" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box4"><img class="pic4" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box5"><img class="pic5" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="niuname">未知</div>
                    <div class="xiazhubox"><img class="bankerimg" src="__STATIC__/game/img/qiangzhuang.png"><img src="__STATIC__/game/img/X-1.png" class="multipleimg"> </div>
                </div>
                <img class="qzbg1" style="display: none;" src="/static/botunet/images/bull_banker_bg.png">

            </div>
            <div class="photo"  id="player_4">
            <p style="margin-top: 15px"><span style="max-width: 2.2rem;font-size: 0.6rem;" class="nickname">不一样的烟火不一样的烟火</span></p>
                <img src="__STATIC__/game/img/33.png" style="width: 2rem;height: 2rem;">
                <img style="left:73px;bottom:30px;" class="readyimg" src="__STATIC__/game/img/ready1.png" style="width: 2.5rem;height: 2.5rem;">
                <img class="zhuangimg" src="__STATIC__/game/img/zhuang.png">
                <p><span class="money">34</span></p>
                <span class="gameret"></span>
                <div class="cardsbox" style="bottom:45px; left:50px;">
                    <div class="poker box1"><img class="pic1" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box2"><img class="pic2" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box3"><img class="pic3" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box4"><img class="pic4" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box5"><img class="pic5" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="niuname">未知</div>
                    <div class="xiazhubox"><img class="bankerimg" src="__STATIC__/game/img/qiangzhuang.png"><img src="__STATIC__/game/img/X-1.png" class="multipleimg"> </div>
                </div>
                <img class="qzbg1" style="display: none;" src="/static/botunet/images/bull_banker_bg.png">
            </div>


            <div class="photo"  id="player_7">
            <p style="margin-top: 15px"><span style="max-width: 2.2rem;font-size: 0.6rem;" class="nickname">不一样的烟火不一样的烟火</span></p>
                <img src="__STATIC__/game/img/33.png" style="width: 2rem;height: 2rem;">
                <img style="left:73px;bottom:30px;" class="readyimg" src="__STATIC__/game/img/ready1.png" style="width: 2.5rem;height: 2.5rem;">
                <img class="zhuangimg" src="__STATIC__/game/img/zhuang.png">
                <p><span class="money">34</span></p>
                <span class="gameret"></span>
                <div class="cardsbox" style="bottom:45px; left:50px;">
                    <div class="poker box1"><img class="pic1" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box2"><img class="pic2" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box3"><img class="pic3" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box4"><img class="pic4" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="poker box5"><img class="pic5" src="__STATIC__/game/img/pai2/0.png"></div>
                    <div class="niuname">未知</div>
                    <div class="xiazhubox"><img class="bankerimg" src="__STATIC__/game/img/qiangzhuang.png"><img src="__STATIC__/game/img/X-1.png" class="multipleimg"> </div>
                </div>
                <img class="qzbg1" style="display: none;" src="/static/botunet/images/bull_banker_bg.png">
            </div>



        </div>

        <p class="last-time"><span class="text" style="margin-top:0; width:100%; font-size: 14px;">等待摊牌</span><span class="int">15</span></p>





        <img style="margin: -25px;
    left: 50%;
    bottom: 120px;" class="readyimg" id="myreadyimg" src="__STATIC__/game/img/ready1.png" style="width: 2.5rem;height: 2.5rem;">


        <div class="cards">
            <p style="color:#fff; margin-bottom: 12px; display: none;">等待闲家下注</p>
            <p style="color:#fff; margin-bottom: 12px;display: none;">点击牌面看牌</p>
            <img src="__STATIC__/game/img/tanpai.png" onclick="tanpai(); mp3play('mp3xiazhu');" class="tanpai">



            <div class="xiazhu" style="display: none; margin-top:12px;">
                <img onclick="setmultiple(1);" src="__STATIC__/game/img/one.png">
                <img onclick="setmultiple(2);" src="__STATIC__/game/img/two.png">
                <img onclick="setmultiple(4);" src="__STATIC__/game/img/4.png">
                <img onclick="setmultiple(5);" src="__STATIC__/game/img/five.png">
            </div>
            <div class="qiang" style="display: none; margin-top:12px;">


                <img onclick="setbanker(1);" src="__STATIC__/game/img/one.png">

                <img onclick="setbanker(2);" src="__STATIC__/game/img/two.png">
                <img onclick="setbanker(4);" src="__STATIC__/game/img/4.png">

                <img onclick="setbanker(0);" src="__STATIC__/game/img/buqiang.png">
            </div>
            <div class="pai">

                <div class="poker box1" onclick="poker.ajaxshow('<?php echo url('showone'); ?>',0,'__STATIC__/game/img/pai2/',this,function(){ mp3play('mp3fapai');});"><img class="pk" src="__STATIC__/game/img/pai2/0.png"></div>
                <div class="poker box2" onclick="poker.ajaxshow('<?php echo url('showone'); ?>',1,'__STATIC__/game/img/pai2/',this,function(){ mp3play('mp3fapai');});"><img class="pk" src="__STATIC__/game/img/pai2/0.png"></div>
                <div class="poker box3" onclick="poker.ajaxshow('<?php echo url('showone'); ?>',2,'__STATIC__/game/img/pai2/',this,function(){ mp3play('mp3fapai');});"><img class="pk" src="__STATIC__/game/img/pai2/0.png"></div>
                <div class="poker box4" onclick="poker.ajaxshow('<?php echo url('showone'); ?>',3,'__STATIC__/game/img/pai2/',this,function(){ mp3play('mp3fapai');});"><img class="pk" src="__STATIC__/game/img/pai2/0.png"></div>
                <div class="poker box5" onclick="poker.ajaxshow('<?php echo url('showone'); ?>',4,'__STATIC__/game/img/pai2/',this,function(){ mp3play('mp3fapai');});"><img class="pk" src="__STATIC__/game/img/pai2/0.png"></div>
            </div><div class="niuname">未知</div>
        </div>
    </div>
    <div class="msg" id="player_99" style="bottom: 0;">
        
        <div class="photo member__<?php echo $memberinfo['id']; ?>" style="display: block; margin-bottom: 10px;">
        <p style="margin-top: 15px;"><span><?php echo $memberinfo['nickname']; ?></span></p>
            <img src="<?php echo $memberinfo['photo']; ?>" style="width: 2rem;height: 2rem;">
            <img class="zhuangimg" src="__STATIC__/game/img/zhuang.png">
            <p><span class="moneybox"><?php echo $memberinfo['money']; ?></span></p>


            <span style="top: -34px;" class="gameret"></span>

            <div class="xiazhubox"><img class="bankerimg" src="__STATIC__/game/img/qiangzhuang.png"><img src="__STATIC__/game/img/X-1.png" class="multipleimg"> </div>
            <img class="qzbg1" style="display: none;" src="/static/botunet/images/bull_banker_bg.png">
        </div>


<div style="clear: both;"></div>

        <div style="left: 0; width: 100%;" class="">
            <img src="__STATIC__/game/img/tb111.png" width="100%" style="position: absolute; left:0; z-index: -1;height: 3.2rem;">
            <img src="__STATIC__/game/img/roomCard.png"
                 style="width: 1.4em; float:left;margin:0.2rem 0 0 1rem;vertical-align: middle;"><span
                style="display: inline-block;padding:0.2rem 0.6rem 0.2rem 0.4rem;background:#564C4A;color: #eee;font-size: 0.7rem;line-height:1rem;border-top-right-radius: 0.9rem;border-bottom-right-radius: 0.9rem;border: 1px solid #666;vertical-align: bottom;margin-bottom: 0.4rem;float:left; margin-top:6px;"><span style="font-size: 0.7rem;" id="roomcards"><?php echo $room['room_cards_num']; ?></span>张</span>

            <div class="msg-action">

                <img src="__STATIC__/game/img/audiobtn.png" class="audiobtn">

               <!--  <img onclick="window.location.href='<?php echo url('myhome/index'); ?>'" src="__STATIC__/game/img/home.png" style="margin-right:20px;" class="home">
 -->
                <img src="__STATIC__/game/img/guize.png" class="rule">  <img class="inviteico" src="__STATIC__/game/img/invite.png" style=""> <img src="__STATIC__/game/img/xiaoxi.png" class="showmsgimg" style="width: 1.6rem;height: 1.6rem;" />
            <ul style="z-index: 10000;">
                <li onclick="sendmsg('我出去叫人2','message1');">我出去叫人2</li>
                <li onclick="sendmsg('你的牌好靓哇2','message2');">你的牌好靓哇2</li>
                <li onclick="sendmsg('我当年横扫澳门五条街','message3');">我当年横扫澳门五条街</li>
                <li onclick="sendmsg('算你牛逼','message4');">算你牛逼</li>
				<li onclick="sendmsg('不好意思我有事要先走一步啦','message5');">不好意思我有事要先走一步啦</li>
			    <li onclick="sendmsg('大家好很高兴见到各位','message6');">大家好很高兴见到各位</li>
			    <li onclick="sendmsg('怎么又断线了网络怎么这么差呀','message7');">怎么又断线了网络怎么这么差呀</li>
				<li onclick="sendmsg('别跟我抢庄','message8');">别跟我抢庄</li>
				<li onclick="sendmsg('别磨蹭快点打牌','message9');">别磨蹭快点打牌</li>
				<li onclick="sendmsg('群内游戏切勿转发','message10');">群内游戏切勿转发</li>
				<li onclick="sendmsg('输的裤衩都没了','message11');">输的裤衩都没了</li>
				<li onclick="sendmsg('玩游戏请先进群','message12');">玩游戏请先进群</li>
				<li onclick="sendmsg('我给你们送温暖啦','message13');">我给你们送温暖啦</li>
				<li onclick="sendmsg('谢谢老板','message14');">谢谢老板</li>
            </ul></div>
        </div>


    </div>
</div>


<div class="windoww" style="width: 80%; display:block;height: 40%;background: #6b4aa5;position: fixed;left: 10%;top: 30%;border: 3px solid #f448fe;border-radius: 20px; z-index:9999999999999999">
    <div class="window-top" style="width: 90%;height: 70%;background: #170e2b;border: 3px solid #ad72c6;border-radius: 20px;margin-left: 5%;margin-top: 5%;">
        <p style="color: #fffaff;font-size: 1rem;width: 90%;margin-left: 5%;margin-top: 18%;text-align: center;">房间中有<span>
             <?php if(is_array($users_info) || $users_info instanceof \think\Collection || $users_info instanceof \think\Paginator): $i = 0; $__LIST__ = $users_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
              <?php echo $vo['nickname']; ?>,
             <?php endforeach; endif; else: echo "" ;endif; ?>
            是否加入?</span></p >
    </div>
    <div class="window-bottom" style="width: 86%;font-size: 2.5rem;margin-left: 7%;margin-top: 4%;">
        <div id="create-room" class="button-left" style="float: left;background: #8a49af;height: 1.5rem;width:45%;color: #ffedff;border: 2px solid #c584e0;border-radius: 10rem;line-height: 1.5rem;text-align: center;">创建房间</div>
        <div id="join-game" class="button-right" style="float: right;background: #f3b220;height: 1.5rem;width:45%;color: #f4faff;border: 2px solid #c584e0;border-radius: 10rem;line-height: 1.5rem;text-align: center;">加入游戏</div>
    </div>
</div>

<script src="__STATIC__/game/js/jquery-1.12.1.js"></script>
<script src="//cdn.bootcss.com/socket.io/1.3.7/socket.io.js"></script>
<script src="__STATIC__/game/js/lib/opentip.js"></script>
<script src="__STATIC__/js/countdown.js"></script>
<script src="__STATIC__/game/js/lib/adapter-jquery.js"></script>

<script src="__STATIC__/game/js/jquery-ui.min.js"></script>
<script src="__STATIC__/game/js/jquery.flip.min.js"></script>

<script src="__STATIC__/js/pokershow.js?v=2.90"></script>
<script src="__STATIC__/js/gold-fly.js?v=1.6"></script>
<!--微信分享开始-->

<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
    wx.config(<?php echo $jsconfig; ?>);
    wx.ready(function () {
        var shareData = {
            title: '熟人九人牛牛（房间号：<?php echo $room['room_num']; ?>）',
            desc: '模式：<?php if($gamerule['gametype'] == '1'): ?>牛牛上庄<?php endif; if($gamerule['gametype'] == '2'): ?>固定庄家<?php endif; if($gamerule['gametype'] == '3'): ?>自由抢庄<?php endif; if($gamerule['gametype'] == '4'): ?>明牌抢庄<?php endif; if($gamerule['gametype'] == '5'): ?>通比牛牛<?php endif; ?> 底分：<?php echo $gamerule['score']; ?>分 规则:<?php if($gamerule['rule'] == '1'): ?>牛牛x3 牛九x2 牛八x2<?php endif; if($gamerule['rule'] == '2'): ?>牛牛x4 牛九x3 牛八x2 牛七x2<?php endif; ?>',
            link: '',
            imgUrl: 'http://douniu.xgamer.com.cn/niu.png',
            success: function () {
                //分享成功
            }
        };
        wx.onMenuShareAppMessage(shareData);
        wx.onMenuShareTimeline(shareData);
    });
</script>

<!--微信分享结束-->


<script type="text/javascript">


    $(document).ready(function () {


    });

    $("#create-room").click(function(){

        console.log('1');
        console.log(<?php echo $room['id']; ?>);
        $(window).attr('location','/game.php/Index/index.html');

    })

    $("#join-game").click(function(){
        console.log(<?php echo $room['id']; ?>);
        $(window).attr('location','/game.php/douniuplay/sure_join_agme/room_id/<?php echo $room['id']; ?>.html');
    })



</script>
<!-- <audio onended="mp3playandpause('mp3niu0');" id="mp3niu0" src="__STATIC__/game/video/nv_niu0.mp3"></audio>
<audio onended="mp3playandpause('mp3niu1');" id="mp3niu1" src="__STATIC__/game/video/nv_niu1.mp3"></audio>
<audio onended="mp3playandpause('mp3niu2');" id="mp3niu2" src="__STATIC__/game/video/nv_niu2.mp3"></audio>
<audio onended="mp3playandpause('mp3niu3');" id="mp3niu3" src="__STATIC__/game/video/nv_niu3.mp3"></audio>
<audio onended="mp3playandpause('mp3niu4');" id="mp3niu4" src="__STATIC__/game/video/nv_niu4.mp3"></audio>
<audio onended="mp3playandpause('mp3niu5');" id="mp3niu5" src="__STATIC__/game/video/nv_niu5.mp3"></audio>
<audio onended="mp3playandpause('mp3niu6');" id="mp3niu6" src="__STATIC__/game/video/nv_niu6.mp3"></audio>
<audio onended="mp3playandpause('mp3niu7');" id="mp3niu7" src="__STATIC__/game/video/nv_niu7.mp3"></audio>
<audio onended="mp3playandpause('mp3niu8');" id="mp3niu8" src="__STATIC__/game/video/nv_niu8.mp3"></audio>
<audio onended="mp3playandpause('mp3niu9');" id="mp3niu9" src="__STATIC__/game/video/nv_niu9.mp3"></audio>
<audio onended="mp3playandpause('mp3niu10');" id="mp3niu10" src="__STATIC__/game/video/nv_niuniu.mp3"></audio>
<audio onended="mp3playandpause('mp3niu11');" id="mp3niu11" src="__STATIC__/game/video/nv_wuhua.mp3"></audio>
<audio onended="mp3playandpause('mp3niu12');" id="mp3niu12" src="__STATIC__/game/video/nv_zha.mp3"></audio>
<audio onended="mp3playandpause('mp3niu13');" id="mp3niu13" src="__STATIC__/game/video/nv_wuxiao.mp3"></audio>

<audio onended="mp3playandpause('mp3daojishi');" id="mp3daojishi" src="__STATIC__/game/video/daojishi.mp3"></audio>
<audio onended="mp3playandpause('mp3gold');" id="mp3gold" src="__STATIC__/game/video/gold.mp3"></audio>
<audio onended="mp3playandpause('mp3kaiju');" id="mp3kaiju" src="__STATIC__/game/video/kaiju.mp3"></audio>
<audio onended="mp3playandpause('mp3xiazhu');" id="mp3xiazhu" src="__STATIC__/game/video/xiazhu.mp3"></audio>
<audio onended="mp3playandpause('mp3fapai');" id="mp3fapai" src="__STATIC__/game/video/fapai.mp3"></audio>

<audio onended="mp3playandpause('message1');" id="message1" src="__STATIC__/game/message/message1.m4a"></audio>
<audio onended="mp3playandpause('message2');" id="message2" src="__STATIC__/game/message/message2.m4a"></audio>
<audio onended="mp3playandpause('message3');" id="message3" src="__STATIC__/game/message/message3.m4a"></audio>
<audio onended="mp3playandpause('message4');" id="message4" src="__STATIC__/game/message/message4.m4a"></audio>
<audio onended="mp3playandpause('message5');" id="message5" src="__STATIC__/game/message/message5.m4a"></audio>
<audio onended="mp3playandpause('message6');" id="message6" src="__STATIC__/game/message/message6.m4a"></audio>
<audio onended="mp3playandpause('message7');" id="message7" src="__STATIC__/game/message/message7.m4a"></audio>
<audio onended="mp3playandpause('message8');" id="message8" src="__STATIC__/game/message/message8.m4a"></audio>
<audio onended="mp3playandpause('message9');" id="message9" src="__STATIC__/game/message/message9.m4a"></audio>
<audio onended="mp3playandpause('message10');" id="message10" src="__STATIC__/game/message/message10.m4a"></audio>
<audio onended="mp3playandpause('message11');" id="message11" src="__STATIC__/game/message/message11.m4a"></audio>
<audio onended="mp3playandpause('message12');" id="message12" src="__STATIC__/game/message/message12.m4a"></audio>
<audio onended="mp3playandpause('message13');" id="message13" src="__STATIC__/game/message/message13.m4a"></audio>
<audio onended="mp3playandpause('message14');" id="message14" src="__STATIC__/game/message/message14.m4a"></audio>

<audio id="background" autoplay="autoplay" loop="loop" src="__STATIC__/game/video/background.mp3" autoplay preload></audio>

<script>
    function mp3play(id){
        document.getElementById(id).play();
    }
    function mp3pause(id){
        document.getElementById(id).pause();
    }

    function mp3playandpause(id){
        mp3play(id);
        mp3pause(id);
    }

</script>
<script>
    function audioAutoPlay(id){
        var audio = document.getElementById(id),
                play = function(){
                    audio.play();
                };
        document.addEventListener("WeixinJSBridgeReady", function () {
            play();
            mp3pause(id);
        }, false);
        document.addEventListener('YixinJSBridgeReady', function() {
            play();
            mp3pause(id);
        }, false);
    }

    audioAutoPlay('mp3niu0');
    audioAutoPlay('mp3niu1');
    audioAutoPlay('mp3niu2');
    audioAutoPlay('mp3niu3');
    audioAutoPlay('mp3niu4');
    audioAutoPlay('mp3niu5');
    audioAutoPlay('mp3niu6');
    audioAutoPlay('mp3niu7');
    audioAutoPlay('mp3niu8');
    audioAutoPlay('mp3niu9');
    audioAutoPlay('mp3niu10');
    audioAutoPlay('mp3niu11');
    audioAutoPlay('mp3niu12');
    audioAutoPlay('mp3niu13');
    audioAutoPlay('background');

    audioAutoPlay('mp3daojishi');
    audioAutoPlay('mp3gold');
    audioAutoPlay('mp3kaiju');
    audioAutoPlay('mp3xiazhu');

    audioAutoPlay('mp3fapai');



    audioAutoPlay('message1');
    audioAutoPlay('message2');
    audioAutoPlay('message3');
    audioAutoPlay('message4');
    audioAutoPlay('message5');
    audioAutoPlay('message6');
    audioAutoPlay('message7');
    audioAutoPlay('message8');
    audioAutoPlay('message9');
    audioAutoPlay('message10');
    audioAutoPlay('message11');
    audioAutoPlay('message12');



setTimeout(function(){
    mp3play('background');
},2000)



</script>

 -->

 <audio onended="mp3playandpause('mp3niu0');" id="mp3niu0" src="__STATIC__/game/video/nv_niu0.mp3"></audio>
<audio onended="mp3playandpause('mp3niu1');" id="mp3niu1" src="__STATIC__/game/video/nv_niu1.mp3"></audio>
<audio onended="mp3playandpause('mp3niu2');" id="mp3niu2" src="__STATIC__/game/video/nv_niu2.mp3"></audio>
<audio onended="mp3playandpause('mp3niu3');" id="mp3niu3" src="__STATIC__/game/video/nv_niu3.mp3"></audio>
<audio onended="mp3playandpause('mp3niu4');" id="mp3niu4" src="__STATIC__/game/video/nv_niu4.mp3"></audio>
<audio onended="mp3playandpause('mp3niu5');" id="mp3niu5" src="__STATIC__/game/video/nv_niu5.mp3"></audio>
<audio onended="mp3playandpause('mp3niu6');" id="mp3niu6" src="__STATIC__/game/video/nv_niu6.mp3"></audio>
<audio onended="mp3playandpause('mp3niu7');" id="mp3niu7" src="__STATIC__/game/video/nv_niu7.mp3"></audio>
<audio onended="mp3playandpause('mp3niu8');" id="mp3niu8" src="__STATIC__/game/video/nv_niu8.mp3"></audio>
<audio onended="mp3playandpause('mp3niu9');" id="mp3niu9" src="__STATIC__/game/video/nv_niu9.mp3"></audio>
<audio onended="mp3playandpause('mp3niu10');" id="mp3niu10" src="__STATIC__/game/video/nv_niuniu.mp3"></audio>
<audio onended="mp3playandpause('mp3niu11');" id="mp3niu11" src="__STATIC__/game/video/nv_wuhua.mp3"></audio>
<audio onended="mp3playandpause('mp3niu12');" id="mp3niu12" src="__STATIC__/game/video/nv_zha.mp3"></audio>
<audio onended="mp3playandpause('mp3niu13');" id="mp3niu13" src="__STATIC__/game/video/nv_wuxiao.mp3"></audio>

<audio onended="mp3playandpause('mp3daojishi');" id="mp3daojishi" src="__STATIC__/game/video/daojishi.mp3"></audio>
<audio onended="mp3playandpause('mp3gold');" id="mp3gold" src="__STATIC__/game/video/gold.mp3"></audio>
<audio onended="mp3playandpause('mp3kaiju');" id="mp3kaiju" src="__STATIC__/game/video/kaiju.mp3"></audio>
<audio onended="mp3playandpause('mp3xiazhu');" id="mp3xiazhu" src="__STATIC__/game/video/xiazhu.mp3"></audio>
<audio onended="mp3playandpause('mp3fapai');" id="mp3fapai" src="__STATIC__/game/video/fapai.mp3"></audio>

<audio onended="mp3playandpause('message1');" id="message1" src="__STATIC__/game/message/message1.m4a"></audio>
<audio onended="mp3playandpause('message2');" id="message2" src="__STATIC__/game/message/message2.m4a"></audio>
<audio onended="mp3playandpause('message3');" id="message3" src="__STATIC__/game/message/message3.m4a"></audio>
<audio onended="mp3playandpause('message4');" id="message4" src="__STATIC__/game/message/message4.m4a"></audio>
<audio onended="mp3playandpause('message5');" id="message5" src="__STATIC__/game/message/message5.m4a"></audio>
<audio onended="mp3playandpause('message6');" id="message6" src="__STATIC__/game/message/message6.m4a"></audio>
<audio onended="mp3playandpause('message7');" id="message7" src="__STATIC__/game/message/message7.m4a"></audio>
<audio onended="mp3playandpause('message8');" id="message8" src="__STATIC__/game/message/message8.m4a"></audio>
<audio onended="mp3playandpause('message9');" id="message9" src="__STATIC__/game/message/message9.m4a"></audio>
<audio onended="mp3playandpause('message10');" id="message10" src="__STATIC__/game/message/message10.m4a"></audio>
<audio onended="mp3playandpause('message11');" id="message11" src="__STATIC__/game/message/message11.m4a"></audio>
<audio onended="mp3playandpause('message12');" id="message12" src="__STATIC__/game/message/message12.m4a"></audio>
<audio onended="mp3playandpause('message13');" id="message13" src="__STATIC__/game/message/message13.m4a"></audio>
<audio onended="mp3playandpause('message14');" id="message14" src="__STATIC__/game/message/message14.m4a"></audio>
<audio onended="mp3playandpause('message20');" id="message20" src="__STATIC__/game/message/message20.m4a"></audio>
<audio onended="mp3playandpause('message21');" id="message21" src="__STATIC__/game/message/message21.m4a"></audio>

<audio onended="mp3playandpause('nobanker');" id="nobanker" src="__STATIC__/game/message/nobanker.m4a"></audio>
<audio onended="mp3playandpause('robbanker');" id="robbanker" src="__STATIC__/game/message/robbanker.m4a"></audio>
<audio onended="mp3playandpause('times1');" id="times1" src="__STATIC__/game/message/times1.m4a"></audio>
<audio onended="mp3playandpause('times2');" id="times2" src="__STATIC__/game/message/times2.m4a"></audio>
<audio onended="mp3playandpause('times3');" id="times3" src="__STATIC__/game/message/times3.m4a"></audio>
<audio onended="mp3playandpause('times4');" id="times4" src="__STATIC__/game/message/times4.m4a"></audio>
<audio onended="mp3playandpause('times5');" id="times5" src="__STATIC__/game/message/times5.m4a"></audio>
<audio onended="mp3playandpause('times8');" id="times8" src="__STATIC__/game/message/times8.m4a"></audio>
<audio onended="mp3playandpause('times10');" id="times10" src="__STATIC__/game/message/times10.m4a"></audio>

<audio id="background" loop="loop" src="__STATIC__/game/video/background.mp3"  preload></audio>

<script>
    function mp3play(id){
        document.getElementById(id).play();
    }
    function mp3pause(id){
        document.getElementById(id).pause();
    }

    function mp3playandpause(id){
        mp3play(id);
        mp3pause(id);
    }

</script>
<script>
    function audioAutoPlay(id){
        var audio = document.getElementById(id),
                play = function(){
                    audio.play();
                };
        document.addEventListener("WeixinJSBridgeReady", function () {
            play();
            mp3pause(id);
        }, false);
        document.addEventListener('YixinJSBridgeReady', function() {
            play();
            mp3pause(id);
        }, false);
    }

    audioAutoPlay('mp3niu0');
    audioAutoPlay('mp3niu1');
    audioAutoPlay('mp3niu2');
    audioAutoPlay('mp3niu3');
    audioAutoPlay('mp3niu4');
    audioAutoPlay('mp3niu5');
    audioAutoPlay('mp3niu6');
    audioAutoPlay('mp3niu7');
    audioAutoPlay('mp3niu8');
    audioAutoPlay('mp3niu9');
    audioAutoPlay('mp3niu10');
    audioAutoPlay('mp3niu11');
    audioAutoPlay('mp3niu12');
    audioAutoPlay('mp3niu13');
    audioAutoPlay('background');

    audioAutoPlay('mp3daojishi');
    audioAutoPlay('mp3gold');
    audioAutoPlay('mp3kaiju');
    audioAutoPlay('mp3xiazhu');

    audioAutoPlay('mp3fapai');



    audioAutoPlay('message1');
    audioAutoPlay('message2');
    audioAutoPlay('message3');
    audioAutoPlay('message4');
    audioAutoPlay('message5');
    audioAutoPlay('message6');
    audioAutoPlay('message7');
    audioAutoPlay('message8');
    audioAutoPlay('message9');
    audioAutoPlay('message10');
    audioAutoPlay('message11');
    audioAutoPlay('message12');
   


setTimeout(function(){
    if (localStorage.getItem('allowPlayBG') != 'false') {
        mp3play('background');
    }
},2000)



</script>


<div style="display: none;"> <img src="__STATIC__/game/img/pai/1.png">
<img src="__STATIC__/game/img/pai/2.png">
<img src="__STATIC__/game/img/pai/3.png">
<img src="__STATIC__/game/img/pai/4.png">
<img src="__STATIC__/game/img/pai/5.png">
<img src="__STATIC__/game/img/pai/6.png">
<img src="__STATIC__/game/img/pai/7.png">
<img src="__STATIC__/game/img/pai/8.png">
<img src="__STATIC__/game/img/pai/9.png">
<img src="__STATIC__/game/img/pai/10.png">
<img src="__STATIC__/game/img/pai/11.png">
<img src="__STATIC__/game/img/pai/12.png">
<img src="__STATIC__/game/img/pai/13.png">
<img src="__STATIC__/game/img/pai/14.png">
<img src="__STATIC__/game/img/pai/15.png">
<img src="__STATIC__/game/img/pai/16.png">
<img src="__STATIC__/game/img/pai/17.png">
<img src="__STATIC__/game/img/pai/18.png">
<img src="__STATIC__/game/img/pai/19.png">
<img src="__STATIC__/game/img/pai/20.png">
<img src="__STATIC__/game/img/pai/21.png">
<img src="__STATIC__/game/img/pai/22.png">
<img src="__STATIC__/game/img/pai/23.png">
<img src="__STATIC__/game/img/pai/24.png">
<img src="__STATIC__/game/img/pai/25.png">
<img src="__STATIC__/game/img/pai/26.png">
<img src="__STATIC__/game/img/pai/27.png">
<img src="__STATIC__/game/img/pai/28.png">
<img src="__STATIC__/game/img/pai/29.png">
<img src="__STATIC__/game/img/pai/30.png">
<img src="__STATIC__/game/img/pai/31.png">
<img src="__STATIC__/game/img/pai/32.png">
<img src="__STATIC__/game/img/pai/33.png">
<img src="__STATIC__/game/img/pai/34.png">
<img src="__STATIC__/game/img/pai/35.png">
<img src="__STATIC__/game/img/pai/36.png">
<img src="__STATIC__/game/img/pai/37.png">
<img src="__STATIC__/game/img/pai/38.png">
<img src="__STATIC__/game/img/pai/39.png">
<img src="__STATIC__/game/img/pai/40.png">
<img src="__STATIC__/game/img/pai/41.png">
<img src="__STATIC__/game/img/pai/42.png">
<img src="__STATIC__/game/img/pai/43.png">
<img src="__STATIC__/game/img/pai/44.png">
<img src="__STATIC__/game/img/pai/45.png">
<img src="__STATIC__/game/img/pai/46.png">
<img src="__STATIC__/game/img/pai/47.png">
<img src="__STATIC__/game/img/pai/48.png">
<img src="__STATIC__/game/img/pai/49.png">
<img src="__STATIC__/game/img/pai/50.png">
<img src="__STATIC__/game/img/pai/51.png">
<img src="__STATIC__/game/img/pai/52.png">

<img src="__STATIC__/game/img/niu0.png">
<img src="__STATIC__/game/img/niu1.png">
<img src="__STATIC__/game/img/niu2.png">
<img src="__STATIC__/game/img/niu3.png">
<img src="__STATIC__/game/img/niu4.png">
<img src="__STATIC__/game/img/niu5.png">
<img src="__STATIC__/game/img/niu6.png">
<img src="__STATIC__/game/img/niu7.png">
<img src="__STATIC__/game/img/niu8.png">
<img src="__STATIC__/game/img/niu9.png">
<img src="__STATIC__/game/img/niu10.png">
<img src="__STATIC__/game/img/niu11.png">
<img src="__STATIC__/game/img/niu12.png">
<img src="__STATIC__/game/img/niu13.png"></div>
</body>
</html>
